package com.h.chatroom.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserRegisterRequest {
    @NotNull(message = "用户名不能为空")
    @Length(max = 20)
    private String username;

    @NotNull(message = "用户密码不能为空")
    @Length(max = 12)
    private String password;
}
